package Vista;
import java.awt.BorderLayout;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTabbedPane;
import javax.swing.JTable;

import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;
import javax.swing.table.AbstractTableModel;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.TableModel;

/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class VentanaConsulta extends javax.swing.JFrame {
	private JPanel panConsulta;
	private JTable jtLista;
	private JTabbedPane jtConsultar;
	private JScrollPane jscConsultar;
	private JLabel lblCalendario;

	/**
	* Auto-generated main method to display this JFrame
	*/
	
	
	public VentanaConsulta() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			{
				panConsulta = new JPanel();
				getContentPane().add(panConsulta, BorderLayout.CENTER);
				panConsulta.setLayout(null);
				panConsulta.setBackground(new java.awt.Color(208,228,248));
				{
					lblCalendario = new JLabel();
					panConsulta.add(lblCalendario);
					lblCalendario.setText("CALENDARIO DE LOS PARTIDOS");
					lblCalendario.setBounds(255, 12, 342, 31);
					lblCalendario.setFont(new java.awt.Font("Bitstream Charter",0,20));
				}
				{
					jscConsultar = new JScrollPane();
					panConsulta.add(jscConsultar);
					jscConsultar.setBounds(92, 55, 609, 243);
					jscConsultar.setBackground(new java.awt.Color(255,255,255));
					{
						
						jtLista = new JTable();
						jscConsultar.setViewportView(jtLista);
						
					}
					
						
					
				}
			}
			pack();
			setSize(800, 400);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}
	//llena las tabla con la lista de los partidos
	public void setListado(AbstractTableModel abstractTableModel)
	{
		jtLista.setModel(abstractTableModel);
	}
	public void mostrarMensaje(String mensaje)
	{
      JOptionPane.showMessageDialog(this,mensaje);
	}

}
